﻿#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QQuickPaintedItem>
#include <QQuickView>

class MyWidget:public QQuickPaintedItem
{
    Q_OBJECT
public:
    explicit MyWidget(QQuickItem *parent = 0);

    Q_INVOKABLE void setView(MyWidget *view);

    void paint(QPainter *painter);


};

#endif // MYWIDGET_H
